import { Component, OnInit, Input } from '@angular/core';

@Component({
  selector: 'app-music',
  templateUrl: './music.component.html',
  styleUrls: ['./music.component.css']
})
export class MusicComponent implements OnInit {

  @Input() music!: any;

  ngOnInit(): void {
  }
  deal(value: number): any {
    if (value > 100000000) {
      return Math.floor(value / 10000000)/10 + "亿"
    } else if (value > 10000) {
      return Math.floor(value / 1000)/10 + "万"
    } else {
      return value
    }
  }
}
